package nio;

import java.nio.IntBuffer;
import java.util.Arrays;

/**
 * @Author Klys
 * @Date 2023/6/3 10:44
 * @Description
 * @Version 1.0
 */
public class Demo04 {

    public static void main(String[] args) {

        IntBuffer src = IntBuffer.wrap(new int[]{1, 2, 3, 4, 5});
        IntBuffer buffer = IntBuffer.allocate(10);
        buffer.put(src);
        System.out.println(Arrays.toString(buffer.array()));
    }
}
